package cc.comac.mom.api;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import cc.comac.mom.bean.QualityPlanToDo;
import cc.comac.mom.util.ResultBean;

@FeignClient(name = "mom-qar-srv")
public interface QualityPlanToDoService {

	
	@RequestMapping(value = "/p/cs/QualityPlanToDoService/insert",method = RequestMethod.POST)
	public ResultBean insert(@RequestBody QualityPlanToDo obj);
	
	@RequestMapping(value = "/p/cs/QualityPlanToDoService/planConfirmBatch",method = RequestMethod.POST)
	public ResultBean planConfirmBatch(@RequestBody List<Long> ids);
	
	@RequestMapping(value = "/p/cs/QualityPlanToDoService/getUnTreatedByPartNoAndToDoStatus",method = RequestMethod.POST)
	public ResultBean getUnTreatedByPartNoAndToDoStatus(@RequestParam(value="partNo") String partNo,@RequestParam(value="toDoType") int toDoType);
	
	@RequestMapping(value = "/p/cs/QualityPlanToDoService/selectByCondition",method = RequestMethod.POST)
	public ResultBean selectByCondition(@RequestBody QualityPlanToDo obj);
}
